﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Ultility;
using System.Data;
using System.Data.SqlClient;

namespace Entity
{
    public partial class Entity_CheckOut : Component
    {
        DBAccess _access = new DBAccess();
        public Entity_CheckOut()
        {
            InitializeComponent();
        }

        public Entity_CheckOut(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }

        public DataSet _Select_InfoCustomer()
        {
            return _access._ExcuteQuery("sp_Select_InfoCustomer", null);
        }


        public DataSet _show_HoaDon(string maHD)
        {
            SqlParameter[] para = { new SqlParameter("@maHD", SqlDbType.Char) };
            para[0].Value = maHD;
            return _access._ExcuteQuery("sp_Select_InfoRentForm", para);
        }
    }
}
